/* 
 * Author      		: Adnin Devit CF 
 * Date Created		: 31-Maret-2011 
 * Date Modified	: 6-April-2011 
 * Version			: 1.1 
 * */
package jtk.project4.fleet.field;

import nl.coderight.jazz.form.FormLayout;
import nl.coderight.jazz.form.control.GroupControl;
import nl.coderight.jazz.form.field.LabelField;
//import jtk.project4.fleet.domain.MaintenanceHistory;

	public class TotalsField extends GroupControl<String>{
		private LabelField maintenance;
		private LabelField part;
		private LabelField repair;
		private LabelField labor;
	

	public TotalsField(String bindID){
		setTitle("header.total");
		setBindID(bindID);
		createFields();
		createLayout();
	}
	
	private void createFields(){
		maintenance = new LabelField("$64.350");
		part = new LabelField("$114.820");
		repair = new LabelField("$40.490");
		labor = new LabelField("$40.500");
	}
	
	private void createLayout(){
		setLayout(new FormLayout())
		.addLabel("label.maintenance").addField(maintenance)
		.addLabel("label.repairs").addField(repair)
		.addRow()
		.addLabel("label.part").addField(part)
		.addLabel("label.labor").addField(labor);
	}
}